﻿using System;
using System.Collections.Generic;
using System.Text;
using Task.Common.Entity;
using System.Collections;

namespace Task.Common.Interface
{
    public interface ITask
    {
        /// <summary>
        /// 获取待办任务列表
        /// </summary>
        /// <param name="where"></param>
        /// <param name="start"></param>
        /// <param name="limit"></param>
        /// <param name="count"></param>
        /// <returns></returns>
        IList GetList(string where,int start,int limit,out int count);

        IList GetFinishedList(string where, int start, int limit, out int count);

        TaskEntity Get(string taskId);

        void Insert(TaskEntity entity);

        void Update(TaskEntity entity);

        bool Exists(string taskId);
        
        void Delete(string taskId);
    }
}
